package cn.geckos.fml.data
{
	import cn.geckos.fml.Type;
	
	public class PictureData implements IData
	{
		private var _id:String;
		private var _name:String;
		private var _link:String;
		
		
		public function PictureData()
		{
			
		}
		
		public function set id(id:String):void
		{
			this._id = id;
		}
		
		public function get id():String
		{
			return this._id;
		}
		
		public function set name(name:String):void
		{
			this._name = name;
		}
		
		public function get name():String
		{
			return this._name;
		}
		
		public function set link(link:String):void
		{
			this._link = link;
		}
		
		public function get link():String
		{
			return this._link;
		}
		
		public function get type():String
		{
			return Type.PICTURE;
		}
		
		public function equals(o:Object):Boolean
		{
			if(o == this)
			{
				return true;
			}else
			{
				if(o is PictureData)
				{
					var t:PictureData = o as PictureData;
					if(t.id   == this._id && 
					   t.name == this._name && 
					   t.link == this._link)
					{
						return true;
					}else
					{
						return false;
					}
				}else return false;
			}
		}
	}
}